package GUI;

import javax.swing.JFrame;
import javax.swing.JPanel;

public class GUI {
	JFrame frameProiect;
	JPanel panel;
	public GUI(){
		frameProiect=new JFrame("Algortimi de cautare");
		panel=new JPanel();
		panel.setLayout(null);
		
        
		JocuriPanel jocPanel=new JocuriPanel();
		panel=jocPanel.JocuriPanelConstr(panel);
		frameProiect.add(panel);
		
		MassagePanel  mes= new MassagePanel();
		panel=mes.MassagePanelConstr(panel);
		
		AlgoritmiPanel algoPanel= new AlgoritmiPanel();
		panel=algoPanel.AlgoritmiPanelConstr(panel);
	    
		SimulareDesenPanel simularedesen= new SimulareDesenPanel();
		panel=simularedesen.SimulareDesenPanelConstr(panel);
		frameProiect.add(panel);
				
		frameProiect.setSize(1010, 700);
		frameProiect.setVisible(true);
		frameProiect.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
	}
	
	public static void main(String args[]){
		
		new GUI();
		MassagePanel.writeMessagePanel("Start the Game!");
	}

}
